package me.zklh.transaction.north.message;

/**
 * 系统预设结构提
 * @param <T>
 */
public class Result<T> {
    private String code;
    private String message;
    private Boolean success;
    private T data;

    public static <T> Result<T> success(T data) {
        Result<T> result = new Result<>();
        result.code = "400";
        result.data = data;
        result.message = "success";
        result.success = true;
        return result;
    }

}
